package com.hxjb;

import com.hxjb.config.dynamicDSConfig.DynamicDataSourceRegister;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@Import({DynamicDataSourceRegister.class}) // 注册动态多数据源
@EnableTransactionManagement // 启注解事务管理，后来使用通过方法名启动事务的方式
//@tk.mybatis.spring.annotation.MapperScan(basePackages = "扫描包")
//@MapperScan(basePackages = "com.hxjb.mapper")
public class SpringbootApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootApplication.class, args);
	}
}
